package com.aifast.system.sys.dao;

import com.aifast.system.sys.entity.SysRoleAuthority;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 角色权限 Mapper 接口
 * </p>
 *
 * @author fujian
 * @since 2022-01-07
 */
@Mapper
public interface SysRoleAuthorityDao extends BaseMapper<SysRoleAuthority> {

    @Delete("delete from sys_role_authority where role_id = #{roleId}")
    int deleteByRoleId(Integer roleId);
}
